﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Views.AgentManager
{
    public partial class AccountInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                lblLoginName.Text = Easydp.Controllers.AgentController.AgentInfo.LoginName;
            }
            
        }

        protected void dtvAgentInfo_ItemUpdated(object sender, DetailsViewUpdatedEventArgs e)
        {
            if (e.Exception != null)
            {
                AgentMessageBar.Show(e.Exception);
                e.ExceptionHandled = true;
                e.KeepInEditMode = true;
            }
        }
    }
}
